<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2024/1/15
 * Time: 11:24
 */

namespace app\model\admin;


class Keyword extends Base
{
    protected $pk = 'keyword';
    protected $json = ['res_data'];
    protected $hidden = ['res_data'];
    public function getAllAttr($value,$data){
        if (!empty($data['zz_all']) && $data['zz_all'] > $value){
            return $data['zz_all'];
        }
        return $value;
    }
    public function getPcAttr($value,$data){
        if (!empty($data['zz_pc']) && $data['zz_pc'] > $value){
            return $data['zz_pc'];
        }
        return $value;
    }
    public function getPhoneAttr($value,$data){
        if (!empty($data['zz_phone']) && $data['zz_phone'] > $value){
            return $data['zz_phone'];
        }
        return $value;
    }
}